package vn.edu.hcmuns.selab.arm.ui.utility;

import java.io.InputStream;
import java.util.logging.Logger;

public class ResourceUtil {

    private static Logger log = Logger.getLogger("ResourceUtil");
    
    public static InputStream getResource(String path) {
        InputStream result = Class.class.getClass().getResourceAsStream("/resources/" + path);
        if (result == null) {
            log.warning("Could not found resource: " + path);
        }
        return result;
    }
}
